// 自动生成模板Device
package system

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 设备表 结构体  Device
type Device struct {
	global.GVA_MODEL
	Device_sn            *string `json:"device_sn" form:"device_sn" gorm:"column:device_sn;size:50;"`                                  //设备编号
	Device_name          *string `json:"device_name" form:"device_name" gorm:"column:device_name;size:30;"`                            //设备名称
	Device_address       *string `json:"device_address" form:"device_address" gorm:"column:device_address;size:50;"`                   //设备地址
	Device_type          *string `json:"device_type" form:"device_type" gorm:"column:device_type;"`                                    //设备类型
	Device_status        *string `json:"device_status" form:"device_status" gorm:"column:device_status;"`                              //设备状态
	Device_status_reason *string `json:"device_status_reason" form:"device_status_reason" gorm:"column:device_status_reason;size:30;"` //设备状态原因
	Device_version       *string `json:"device_version" form:"device_version" gorm:"column:device_version;size:30;"`                   //设备版本
	Device_after_sales   *string `json:"device_after_sales" form:"device_after_sales" gorm:"column:device_after_sales;size:30;"`       //设备售后人员
}

// TableName 设备表 Device自定义表名 device
func (Device) TableName() string {
	return "device"
}
